import request from '@/utils/request'


export default {
    //添加报告
    saveinfo(data) {
        return request({
        url: '/user/summary/saveinfo',
        method: 'post',
        data
        })
  },

     //根据条件查询数据列表
     getpagelist(summaary,page,limit) {
        return request({
        url: `/user/summary/getpagelist/${page}/${limit}`,
        method: 'post',
        data: summaary
        })
  },
   //根据id删除报告
 removeById(id) {
    return request({
        url: `/user/summary/deleteId/${id}`,
        method: `delete`
    })
},
Batchdeleter(idList) {
    return request({
        url: `/user/summary/Batch_delete`,
        method: `delete`,
        data: idList
    })
},

//根据id查询报告
getbyid(id) {
    return request({
        url: `/user/summary/getbyid/${id}`,
        method: `get`
        
    })
},

//根据id修改报告
updateid(data,id) {
    return request({
        url: `/user/summary/update/${id}`,
        method: `put`,
        data
        
    })
},

//根据条件查询数据列表admin
getadminpagelist(summaary,page,limit) {
    return request({
    url: `/user/summary/getadminpagelist/${page}/${limit}`,
    method: 'post',
    data: summaary
    })
},

//根据邮箱获取最新的报告
getcandidate(email){
    return request({
        url: `/user/summary/getcandidate/${email}`,
        method: 'get',
        })
}

  
}